package week3;

import java.util.Scanner;

public class PP0302 {
    public static void main(String[] args) {
        int num1,num2;
        double X;

        Scanner scan = new Scanner(System.in);

        System.out.print("First number: ");
        num1 = scan.nextInt();

        System.out.print("Second number: ");
        num2 = scan.nextInt();

        X = Math.pow(num1,3) + Math.pow(num2,3);

        System.out.println(X);
    }
}
